<?php

namespace Caisse\CaisseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * ArticleCommande
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class ArticleCommande
{
    
    
        /**
     * @ORM\ManyToOne(targetEntity="Caisse\CaisseBundle\Entity\Article", inversedBy="ligneArticles")
   
     */
    private $article;
    
            /**
     * @ORM\ManyToOne(targetEntity="Caisse\CaisseBundle\Entity\Commande", inversedBy="ligneCommandes")
   
     */
    private $commande;

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var integer
     *
     * @ORM\Column(name="qtitee", type="integer")
     */
    private $qtitee;

    /**
     * @var float
     *
     * @ORM\Column(name="prix_article", type="float")
     */
    private $prixArticle;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set qtitee
     *
     * @param integer $qtitee
     * @return ArticleCommande
     */
    public function setQtitee($qtitee)
    {
        $this->qtitee = $qtitee;
    
        return $this;
    }

    /**
     * Get qtitee
     *
     * @return integer 
     */
    public function getQtitee()
    {
        return $this->qtitee;
    }

    /**
     * Set prixArticle
     *
     * @param float $prixArticle
     * @return ArticleCommande
     */
    public function setPrixArticle($prixArticle)
    {
        $this->prixArticle = $prixArticle;
    
        return $this;
    }

    /**
     * Get prixArticle
     *
     * @return float 
     */
    public function getPrixArticle()
    {
        return $this->prixArticle;
    }

    /**
     * Set article
     *
     * @param \Caisse\CaisseBundle\Entity\Article $article
     * @return ArticleCommande
     */
    public function setArticle(\Caisse\CaisseBundle\Entity\Article $article = null)
    {
        $this->article = $article;
    
        return $this;
    }

    /**
     * Get article
     *
     * @return \Caisse\CaisseBundle\Entity\Article 
     */
    public function getArticle()
    {
        return $this->article;
    }

    /**
     * Set commande
     *
     * @param \Caisse\CaisseBundle\Entity\Commande $commande
     * @return ArticleCommande
     */
    public function setCommande(\Caisse\CaisseBundle\Entity\Commande $commande = null)
    {
        $this->commande = $commande;
    
        return $this;
    }

    /**
     * Get commande
     *
     * @return \Caisse\CaisseBundle\Entity\Commande 
     */
    public function getCommande()
    {
        return $this->commande;
    }
}